//
//  CSYDoRetweedController.swift
//  CSYMicroBlockSina
//
//  Created by 姚彦兆 on 15/11/15.
//  Copyright © 2015年 姚彦兆. All rights reserved.
//

import UIKit

class CSYDoRetweedController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        view.backgroundColor = UIColor.randomColor()
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "回退", style: UIBarButtonItemStyle.Plain, target: self, action: "back")
        
        // Do any additional setup after loading the view.
    }

    override func touchesEnded(touches: Set<UITouch>, withEvent event: UIEvent?) {
        
        navigationController?.pushViewController(CSYDoRetweedController(), animated: true)
        
    }
    
    @objc func back(){
    
        navigationController?.popViewControllerAnimated(true)
    
    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
